// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '设备维护',
        name: 'equipmentmaintenance',
        url: "/equipmentmaintenance/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"EquipmentName":"","Handler":"","TreatmentResult":"","FailureDurationMin":"","FailureDescription":"","EquipmentStatus":"","CreationTime":"","UpdateTime":""};
    const editFormOptions = [[{"title":"设备名称","required":true,"field":"EquipmentName","type":"text"}],
                              [{"title":"处理人","required":true,"field":"Handler","type":"text"}],
                              [{"title":"处理结果","required":true,"field":"TreatmentResult","type":"text"}],
                              [{"title":"故障时长","required":true,"field":"FailureDurationMin","type":"text"}],
                              [{"title":"故障描述","required":true,"field":"FailureDescription","type":"textarea"}],
                              [{"dataKey":"设备状态","data":[],"title":"设备状态","required":true,"field":"EquipmentStatus","type":"select"}],
                              [{"title":"创建时间","required":true,"field":"CreationTime","type":"datetime"}],
                              [{"title":"更新时间","required":true,"field":"UpdateTime","type":"datetime"}]];
    const searchFormFields = {"EquipmentName":"","CreationTime":"","UpdateTime":""};
    const searchFormOptions = [[{"title":"设备名称","field":"EquipmentName","type":"like"}],[{"title":"创建时间","field":"CreationTime","type":"date"},{"title":"更新时间","field":"UpdateTime","type":"date"}]];
    const columns = [{field:'Id',title:'主键Id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'EquipmentName',title:'设备名称',type:'string',width:110,require:true,align:'left'},
                       {field:'Handler',title:'处理人',type:'string',width:110,require:true,align:'left'},
                       {field:'TreatmentResult',title:'处理结果',type:'string',width:110,require:true,align:'left'},
                       {field:'FailureDurationMin',title:'故障时长',type:'int',width:110,require:true,align:'left'},
                       {field:'FailureDescription',title:'故障描述',type:'string',width:110,require:true,align:'left'},
                       {field:'EquipmentStatus',title:'设备状态',type:'int',bind:{ key:'设备状态',data:[]},width:110,require:true,align:'left'},
                       {field:'CreationTime',title:'创建时间',type:'datetime',width:150,require:true,align:'left'},
                       {field:'UpdateTime',title:'更新时间',type:'datetime',width:150,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}